package com.heima.behavior.controller;

import com.heima.behavior.dto.UnLikesBehaviorDto;
import com.heima.behavior.service.IApUnlikesBehaviorService;
import com.heima.common.dto.ResponseResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * APP不喜欢行为表 前端控制器
 * </p>
 *
 * @author itheima
 * @since 2022-01-22
 */
@RestController
@RequestMapping("/api/v1/unlikes_behavior")
@Api(tags = "APP不喜欢行为表接口")
@CrossOrigin
public class ApUnlikesBehaviorController {

    @Autowired
    private IApUnlikesBehaviorService apUnlikesBehaviorService;

    @PostMapping
    public ResponseResult unlike(@RequestBody UnLikesBehaviorDto dto) {
        return apUnlikesBehaviorService.unlike(dto);
    }

}
